package parts3.lesson25;

import java.util.function.Predicate;

public class Demo4 {
    public static void main(String[] args) {
        /**
         * startsWith用于判断给定的字符串是否是xx开头
         */
        Predicate<String> pre = "chen"::startsWith;
        System.out.println(pre.test("ch"));
    }
}
